<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="../assets/js/vue.js"></script>
    <title>v-if & v-show & v-else</title>
</head>

<body>
    <h1>v-if v-show</h1>
    <p>v-if： 判断是否加载，v-show：调整css dispaly属性</p>
    <br/>

    <div id="app">
        <div v-if="isLogin">你好：JS</div>
        <div v-else>请登录后操作</div>
    </div>
    <script>
        var app = new Vue({
            el: '#app',
            data: {
                isLogin: false
            }
        })
    </script>
</body>

</html>